#include "integrationtest.h"
#include <QtGui/QApplication>
#include "mainwindow.h"
#include <QDesktopWidget>
#include <QSplashScreen>


/*#if defined(TESTING)
    #include <QtTest/QtTest>

    QTEST_MAIN(IntegrationTest)
    #include "integrationtest.moc"



#elif defined(RUN_MAIN)*/
int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    QPixmap pixmap(":/imgs/SplashLogo.png");
    QSplashScreen splash(pixmap);
    splash.show();
    a.processEvents();
    MainWindow w;

    //w.setWindowFlags(Qt::FramelessWindowHint);
    w.showFullScreen();
    //w.show();
    //splash.deleteLater();
    splash.hide();
    //w.setMaximumSize(w.size());
    return a.exec();
}
//#endif

void IntegrationTest::testGui() {
    MainWindow * mainWindow=new MainWindow();
    mainWindow->showFullScreen();
    mainWindow->test();
}

